<?php defined('SYSPATH') or die('No direct script access.');

class Debug
{
	public static function pr() {
		if (func_num_args() === 0)
			return;

		// Get all passed variables
		$variables = func_get_args();

		foreach ($variables as $var)
		{
			echo "\n/----------------------------------/\n";
			echo Kohana::debug($var);
		}
	}

	public static function dump()
	{
		if (func_num_args() === 0)
			return;

		// Get all passed variables
		$variables = func_get_args();
		echo '<pre>';
		foreach ($variables as $var)
		{
			echo "\n/----------------------------------/\n";
			echo Kohana::dump($var);
		}
		echo '</pre>';
	}
}